<template>
  <div>
    <div>
        <!-- this is how to use  TWXVncComponent, all parameters should be transfered to child component-->
      <TWXVnc-component
        :thingName="thingName"
        :tunnelName="tunnelName"
        :vncPassword="vncPassword"
        :host="host"
        :port="port"
        :cookieUrl="cookieUrl"
        :userName="userName"
        :passWord="passWord"
      ></TWXVnc-component>
    </div>
  </div>
</template>

<script>
import axios from "../service/service";
import TWXVncComponent from "./TWXVncComponent";
export default {
  data() {
    return {
        thingName: "test",
        tunnelName: "vnc",
        vncPassword: 123456,
        /* host is Thingworx server address, for example https://192.168.70.67 */
        host: "http://192.168.70.67",
        port: "8080",
        userName: "Administrator",
        passWord: "1234567890kong",
        /*  cookieUrl is a parameter of the service 'GetCookies', which to get the Thingworx system cookies, and wo can use any services here,
            like: http://127.0.0.1:8080/Thingworx/Resources/CurrentSessionInfo/Services/GetCurrentUserLanguage, but it must be exit in Thingworx;
            if Thingworx system using the HTTP protocol, the host must be 'http://127.0.0.1:8080';
            if Thingworx system using the HTTPS protocol, the host must be use a real domain name， like 'https://www.google.com';
        */
        cookieUrl: "http://127.0.0.1:8080/Thingworx/Resources/CurrentSessionInfo/Services/GetCurrentUserLanguage"
        };
    },
    components: {
        TWXVncComponent
    },
    created() {},
    methods: {
 
    }
};
</script>
<style scoped>
</style>
